home *** CD-ROM | disk | FTP | other *** search
/ Assassins - Ultimate CD Games Collection 4 / Assassins 4 (1999)(Weird Science).iso / misc / omega / source / glob.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-02  |  5.4 KB  |  253 lines

  1. /* omega copyright (c) 1987,1988,1989 by Laurence Raphael Brothers */
  2.  
  3. /* this file contains extern declarations of global variables used
  4.    throughout the program */
  5. /* it includes the other header files, so every program module 
  6. (except o.c) can just include this file. */
  7.  
  8. /* glob.h */
  9.  
  10. #include "defs.h"
  11.  
  12. #include "extern.h"
  13.  
  14. /* This string holds the path to the library files */
  15. #ifdef AMIGA
  16. extern
  17. #endif
  18. char *Omegalib;
  19.  
  20. /* one of each monster */
  21. extern struct monster Monsters[NUMMONSTERS];
  22.  
  23. /* one of each spell */
  24. extern struct spell Spells[NUMSPELLS+1];
  25.  
  26. /* one of each item */
  27. extern struct object Objects[TOTALITEMS];
  28.  
  29. /* locations of city sites [0] - found, [1] - x, [2] - y */
  30. extern int CitySiteList[NUMCITYSITES][3];
  31.  
  32. extern struct player Player;                 
  33. /* the player */
  34.  
  35. extern int LENGTH;
  36. /* level y dimension */
  37.  
  38. extern int WIDTH;
  39. /* level x dimension */
  40.  
  41. extern long GameStatus;
  42. /* Game Status bit vector */
  43.  
  44. extern int ScreenLength;
  45. /* How large is level window */
  46.  
  47. extern struct terrain Country[MAXWIDTH][MAXLENGTH];
  48. /* The countryside */
  49.  
  50. #ifdef MSDOS
  51. extern struct level TheLevel;
  52. #endif
  53.  
  54. extern struct level *City;
  55. /* The city of Rampart */
  56.  
  57. extern struct level *TempLevel;
  58. /* Place holder */
  59.  
  60. extern struct level *Dungeon;
  61. /* Pointer to current Dungeon */
  62.  
  63. extern struct level *Level;
  64. /* Pointer to current Level */
  65.  
  66. extern int Current_Dungeon;
  67. /* What is Dungeon now (an E_ constant) */
  68.  
  69. extern int Villagenum;
  70. /* Current Village number */ 
  71.  
  72. extern int ScreenOffset;
  73. /* Offset of displayed screen to level */
  74.  
  75. extern int MaxDungeonLevels;
  76. /*Deepest level allowed in dungeon */
  77.  
  78. extern int Current_Environment;
  79. /* Which environment are we in (an E_ constant) */
  80.  
  81. extern int Last_Environment;
  82. /* Which environment were we in last (an E_ constant) */
  83.  
  84. extern int Dirs[2][9];                       
  85. /* 9 xy directions */
  86.  
  87. extern char Cmd;                         
  88. /* last player command */
  89.  
  90. extern int Command_Duration;
  91. /* how long does current command take */
  92.  
  93. extern struct monster *Arena_Monster;
  94. /* Opponent in arena */
  95.  
  96. extern int Arena_Opponent;
  97. /* case label of opponent in l_arena()*/
  98.  
  99. extern int Arena_Victory;
  100. /* did player win in arena? */
  101.  
  102. extern int Imprisonment;
  103. /* amount of time spent in jail */
  104.  
  105. extern int Precipitation;
  106. /* Hours of rain, snow, etc */
  107.  
  108. extern int Phase;
  109. /* Phase of the moon */
  110.  
  111. extern int Lunarity;
  112. /* How player is affected by moon */
  113.  
  114. extern int Date;
  115. /* day of the year */
  116.  
  117. extern int Pawndate;
  118. /* Pawn Shop item generation date */
  119.  
  120. extern pob Pawnitems[PAWNITEMS];
  121. /* items in pawn shop */
  122.  
  123. extern int ViewHour;
  124. /* crystal ball use marker */
  125.  
  126. extern int ZapHour;
  127. /* staff of enchantment use marker */
  128.  
  129. extern int HelmHour;
  130. /* helm of teleportation use marker*/
  131.  
  132. extern int SymbolUseHour;                
  133. /* holy symbol use marker */
  134.  
  135. extern int Constriction;
  136. /* Dragonlord Attack State */
  137.  
  138. extern int Blessing;
  139. /* Altar Blessing State */
  140.  
  141. extern int LastDay;
  142. /* DPW date of dole */
  143.  
  144. extern int RitualHour;
  145. /* last use of ritual magic */
  146.  
  147. extern int RitualRoom;
  148. /* last room use of ritual magic */
  149.  
  150. extern int Lawstone;
  151. /* magic stone counter */
  152.  
  153. extern int Chaostone;
  154. /* magic stone counter */
  155.  
  156. extern int Mindstone;
  157. /* magic stone counter */
  158.  
  159. extern int Searchnum;                    
  160. /* number of times to search on 's' */
  161.  
  162. extern int Verbosity;
  163. /* verbosity level */
  164.  
  165. extern int Behavior;
  166. /* NPC behavior, if entered */
  167.  
  168. extern char Seed;                            
  169. /* random seed */
  170.  
  171. extern long Time;
  172. /* turn number */
  173.  
  174. extern int Tick;
  175. /* current second in minute; action coordinator */
  176.  
  177. extern char Stringbuffer[STRING_BUFFER_SIZE][80];
  178. /* the last printed strings */
  179.  
  180. extern long Gymcredit;
  181. /* credit at rampart gym */
  182.  
  183. extern int Spellsleft;
  184. /* research allowance at college */
  185.  
  186. extern int StarGemUse;
  187. /* last date of star gem use */
  188.  
  189. extern int HiMagicUse;
  190. /* last date of high magic use */
  191.  
  192. extern int HiMagic;
  193. /* current level for l_throne */ 
  194.  
  195. extern long Balance;
  196. /* bank account */
  197.  
  198. extern long FixedPoints;
  199. /* points are frozen after adepthood*/
  200.  
  201. extern int LastCountryLocX;
  202. /* previous position in countryside */
  203.  
  204. extern int LastCountryLocY;
  205. /* previous position in countryside */
  206.  
  207. extern int LastTownLocX;
  208. /* previous position in village or city */
  209.  
  210. extern int LastTownLocY;
  211. /* previous position in village or city */
  212.  
  213. extern char Password[64];
  214. /* autoteller password */
  215.  
  216. extern pol Condoitems;
  217. /* items in condo */
  218.  
  219. extern char Str1[100],Str2[100],Str3[100],Str4[100];
  220. /* Some string space, random uses */
  221.  
  222.  
  223.  
  224. /* high score names, levels, behavior */
  225.  
  226. extern int Shadowlordbehavior,Archmagebehavior,Primebehavior,Justiciarbehavior;
  227. extern int Commandantbehavior,Chaoslordbehavior,Lawlordbehavior;
  228. extern int Championbehavior,Priestbehavior[7],Hibehavior,Dukebehavior;
  229. extern char Shadowlord[80],Archmage[80],Prime[80],Commandant[80],Duke[80];
  230. extern char Champion[80],Priest[7][80],Hiscorer[80],Hidescrip[80];
  231. extern char Chaoslord[80],Lawlord[80],Justiciar[80];
  232. extern int Shadowlordlevel,Archmagelevel,Primelevel,Commandantlevel,Dukelevel;
  233. extern int Championlevel,Priestlevel[7],Hilevel,Justiciarlevel;
  234. extern long Hiscore;
  235. extern int Chaoslordlevel,Lawlordlevel,Chaos,Law;
  236.  
  237. /* New globals which used to be statics */
  238. extern int twiddle;
  239. extern int saved;
  240. extern int onewithchaos;
  241. extern int club_hinthour;
  242. extern int winnings;
  243. extern int tavern_hinthour;
  244. extern int scroll_ids[30];
  245. extern int potion_ids[30];
  246. extern int stick_ids[30];
  247. extern int ring_ids[30];
  248. extern int cloak_ids[30];
  249. extern int boot_ids[30];
  250.  
  251. extern int deepest[E_MAX + 1];
  252. extern int level_seed[E_MAX + 1];
  253.